/* NOTE: This file has been DISCARDED
 * @Author: Meroke
 * @Date: 2022-04-05 20:42:30
 * @LastEditors: Meroke
 * @LastEditTime: 2022-04-06 10:42:02
 * @Description: !! There is a serious memory allocation problem, so this file is discarded
 * @FilePath: \MDK-ARMe:\Program\Code\cpp\STM32\project\arm_test\Servo\Inc\action_stack.h
 */
#ifndef __ACTION_STACK__
#define __ACTION_STACK__
#include "stdlib.h"
#include "stm32f4xx_hal.h"
#include <stdio.h>

struct Node;
typedef struct Node *Action_Stack;
typedef Action_Stack Action_Node;
struct Node
{
    uint8_t mode;
    Action_Stack next;
    Action_Stack prior;
};
extern Action_Stack st_head,st_tail;
uint8_t stack_init(Action_Stack st_head,Action_Stack st_tail);
uint8_t push(Action_Stack st_head, uint8_t mode);
int32_t pop(Action_Stack st_head,Action_Stack st_tail);
uint8_t length(Action_Stack st_head);
#endif
